﻿<!--#include file="conn.asp"-->
<%
filename="../index.htm"
if request("body")<>"" then

WriteToTextFile filename,request("body"),"utf-8"

'Set fso = Server.CreateObject("Scripting.FileSystemObject")
'Set fout = fso.CreateTextFile(server.mappath(""&filename&""))
'fout.Write request("body")
'fout.close
'set fout=nothing
'set fso=nothing
mskrindex="ok"
end if
%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>生成网站首页文件</title>
    <link href="images/style.css" type="text/css" rel="stylesheet">
</head>
<body topmargin="1" leftmargin="1">
    <%if mskrindex="ok" then%>
    <table width="98%" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#CCCCCC">
        <tr>
            <td width="100%" bgcolor="#FFFFFF">
                <font color="#FF0000">·成功:生成网站首页完成,时间<%=Now()%></font><br>
                <br>
                <font color="#FF0000">·</font><a target="_blank" href="<%=filename%>"><%=filename%></a>
            </td>
        </tr>
    </table>
    <%else%>
    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#CCCCCC"
        style="border-collapse: collapse">
        <form name="frmAnnounce" method="post" action="">
        <tr>
            <td width="100%" height="30" bgcolor="e7e7e7">
                生成网站首页:<a target="_blank" href="<%=filename%>"><%=filename%></a>&nbsp;&nbsp;模版文件:<a
                    target="_blank" href="index_mb.asp">index_mb.asp</a>
                <input name="change" class="Submit" value="生成首页(HTML页)" type='submit'>
            </td>
        </tr>
        <tr>
            <td bgcolor="#FFFFFF">
                <div align="center">
                    <textarea style="width: 100%; height: 400;" rows="0" name="body" cols="0">
<!--#include file="index_mb.asp"-->
	    </textarea><br />
                    <br />
                    <input name="change" class="Submit" value="生成首页(HTML页)" type='submit'></div>
            </td>
        </tr>
        </form>
    </table>
    <%end if%>
</body>
</html>
